#include<stdio.h>

void test_love1()
{
	float y, x, z, f;
	for (y = 1.5f; y > -1.5f; y -= 0.1f)
	{
		for (x = -1.5f; x < 1.5f; x += 0.05f)
		{
			z = x*x + y*y - 1;
			f = z*z*z - x*x*y*y*y;
			putchar(f <= 0.0f ? "*:-=+.#%@"[(int)(f*-0.8f)] : ' ');
		}
		putchar('\n');
	}
}

void test_love2()
{
	double y, x, z;
	for(y = 2.5; y >= -1.6; y = y - 0.2)
	{
		for(x = -3; x <= 4.8; x = x + 0.1)
		((x*x + y*y - 1)*(x*x + y*y - 1)*(x*x + y*y - 1) <= 3.6*x*x*y*y*y || (x>-2.4 && x<-2.1 && y<1.5 && y>-1)|| (((x<2.5 && x>2.2) || (x>3.4 && x<3.7)) && y>-1 && y<1.5)|| (y>-1 && y<-0.6 && x<3.7 && x>2.2)) ? printf("*") : printf(" ");
		printf("\n");
	}
}

int main()
{
	test_love1();//平面式单个心形
	test_love2();//I ❤ U
	return 0;
}
